Optimal. Leaf size=341 \[ \frac{c \left (\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}+b\right ) \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}{\sqrt{b-\sqrt{b^2-4 a c}} \sqrt{d+e x^2}}\right )}{a^2 \sqrt{b-\sqrt{b^2-4 a c}} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}+\frac{c \left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}{\sqrt{\sqrt{b^2-4 a c}+b} \sqrt{d+e x^2}}\right )}{a^2 \sqrt{\sqrt{b^2-4 a c}+b} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+\frac{b \sqrt{d+e x^2}}{a^2 d x}+\frac{2 e \sqrt{d+e x^2}}{3 a d^2 x}-\frac{\sqrt{d+e x^2}}{3 a d x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.741386, antiderivative size = 341, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 6, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.207, Rules used = {1303, 271, 264, 1692, 377, 205} \[ \frac{c \left (\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}+b\right ) \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}{\sqrt{b-\sqrt{b^2-4 a c}} \sqrt{d+e x^2}}\right )}{a^2 \sqrt{b-\sqrt{b^2-4 a c}} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}+\frac{c \left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}{\sqrt{\sqrt{b^2-4 a c}+b} \sqrt{d+e x^2}}\right )}{a^2 \sqrt{\sqrt{b^2-4 a c}+b} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+\frac{b \sqrt{d+e x^2}}{a^2 d x}+\frac{2 e \sqrt{d+e x^2}}{3 a d^2 x}-\frac{\sqrt{d+e x^2}}{3 a d x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1303
Rule 271
Rule 264
Rule 1692
Rule 377
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{x^4 \sqrt{d+e x^2} \left (a+b x^2+c x^4\right )} \, dx &=\int \left (\frac{1}{a x^4 \sqrt{d+e x^2}}-\frac{b}{a^2 x^2 \sqrt{d+e x^2}}+\frac{b^2-a c+b c x^2}{a^2 \sqrt{d+e x^2} \left (a+b x^2+c x^4\right )}\right ) \, dx\\ &=\frac{\int \frac{b^2-a c+b c x^2}{\sqrt{d+e x^2} \left (a+b x^2+c x^4\right )} \, dx}{a^2}+\frac{\int \frac{1}{x^4 \sqrt{d+e x^2}} \, dx}{a}-\frac{b \int \frac{1}{x^2 \sqrt{d+e x^2}} \, dx}{a^2}\\ &=-\frac{\sqrt{d+e x^2}}{3 a d x^3}+\frac{b \sqrt{d+e x^2}}{a^2 d x}+\frac{\int \left (\frac{b c+\frac{c \left (b^2-2 a c\right )}{\sqrt{b^2-4 a c}}}{\left (b-\sqrt{b^2-4 a c}+2 c x^2\right ) \sqrt{d+e x^2}}+\frac{b c-\frac{c \left (b^2-2 a c\right )}{\sqrt{b^2-4 a c}}}{\left (b+\sqrt{b^2-4 a c}+2 c x^2\right ) \sqrt{d+e x^2}}\right ) \, dx}{a^2}-\frac{(2 e) \int \frac{1}{x^2 \sqrt{d+e x^2}} \, dx}{3 a d}\\ &=-\frac{\sqrt{d+e x^2}}{3 a d x^3}+\frac{b \sqrt{d+e x^2}}{a^2 d x}+\frac{2 e \sqrt{d+e x^2}}{3 a d^2 x}+\frac{\left (c \left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\left (b+\sqrt{b^2-4 a c}+2 c x^2\right ) \sqrt{d+e x^2}} \, dx}{a^2}+\frac{\left (c \left (b+\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\left (b-\sqrt{b^2-4 a c}+2 c x^2\right ) \sqrt{d+e x^2}} \, dx}{a^2}\\ &=-\frac{\sqrt{d+e x^2}}{3 a d x^3}+\frac{b \sqrt{d+e x^2}}{a^2 d x}+\frac{2 e \sqrt{d+e x^2}}{3 a d^2 x}+\frac{\left (c \left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{b+\sqrt{b^2-4 a c}-\left (-2 c d+\left (b+\sqrt{b^2-4 a c}\right ) e\right ) x^2} \, dx,x,\frac{x}{\sqrt{d+e x^2}}\right )}{a^2}+\frac{\left (c \left (b+\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{b-\sqrt{b^2-4 a c}-\left (-2 c d+\left (b-\sqrt{b^2-4 a c}\right ) e\right ) x^2} \, dx,x,\frac{x}{\sqrt{d+e x^2}}\right )}{a^2}\\ &=-\frac{\sqrt{d+e x^2}}{3 a d x^3}+\frac{b \sqrt{d+e x^2}}{a^2 d x}+\frac{2 e \sqrt{d+e x^2}}{3 a d^2 x}+\frac{c \left (b+\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2 c d-\left (b-\sqrt{b^2-4 a c}\right ) e} x}{\sqrt{b-\sqrt{b^2-4 a c}} \sqrt{d+e x^2}}\right )}{a^2 \sqrt{b-\sqrt{b^2-4 a c}} \sqrt{2 c d-\left (b-\sqrt{b^2-4 a c}\right ) e}}+\frac{c \left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e} x}{\sqrt{b+\sqrt{b^2-4 a c}} \sqrt{d+e x^2}}\right )}{a^2 \sqrt{b+\sqrt{b^2-4 a c}} \sqrt{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}}\\ \end{align*}
Mathematica [A] time = 0.72963, size = 320, normalized size = 0.94 \[ \frac{\frac{3 c \left (\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}+b\right ) \tan ^{-1}\left (\frac{x \sqrt{e \sqrt{b^2-4 a c}-b e+2 c d}}{\sqrt{b-\sqrt{b^2-4 a c}} \sqrt{d+e x^2}}\right )}{\sqrt{b-\sqrt{b^2-4 a c}} \sqrt{e \left (\sqrt{b^2-4 a c}-b\right )+2 c d}}+\frac{3 c \left (\frac{2 a c-b^2}{\sqrt{b^2-4 a c}}+b\right ) \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}{\sqrt{\sqrt{b^2-4 a c}+b} \sqrt{d+e x^2}}\right )}{\sqrt{\sqrt{b^2-4 a c}+b} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}-\frac{a \left (d-2 e x^2\right ) \sqrt{d+e x^2}}{d^2 x^3}+\frac{3 b \sqrt{d+e x^2}}{d x}}{3 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.024, size = 248, normalized size = 0.7 \begin{align*} -{\frac{1}{2\,{a}^{2}}\sqrt{e}\sum _{{\it \_R}={\it RootOf} \left ( c{{\it \_Z}}^{4}+ \left ( 4\,be-4\,cd \right ){{\it \_Z}}^{3}+ \left ( 16\,a{e}^{2}-8\,deb+6\,c{d}^{2} \right ){{\it \_Z}}^{2}+ \left ( 4\,b{d}^{2}e-4\,c{d}^{3} \right ){\it \_Z}+c{d}^{4} \right ) }{\frac{bc{{\it \_R}}^{2}+2\, \left ( -2\,ace+2\,{b}^{2}e-bcd \right ){\it \_R}+bc{d}^{2}}{{{\it \_R}}^{3}c+3\,{{\it \_R}}^{2}be-3\,{{\it \_R}}^{2}cd+8\,{\it \_R}\,a{e}^{2}-4\,{\it \_R}\,bde+3\,{\it \_R}\,c{d}^{2}+b{d}^{2}e-c{d}^{3}}\ln \left ( \left ( \sqrt{e{x}^{2}+d}-\sqrt{e}x \right ) ^{2}-{\it \_R} \right ) }}+{\frac{b}{{a}^{2}dx}\sqrt{e{x}^{2}+d}}-{\frac{1}{3\,ad{x}^{3}}\sqrt{e{x}^{2}+d}}+{\frac{2\,e}{3\,a{d}^{2}x}\sqrt{e{x}^{2}+d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (c x^{4} + b x^{2} + a\right )} \sqrt{e x^{2} + d} x^{4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{x^{4} \sqrt{d + e x^{2}} \left (a + b x^{2} + c x^{4}\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]